{extend name="base" /}
{block name="body"}
<div class="layui-body">
    <!--tab标签-->
    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class=""><a href="{:url('admin/order/index')}">订单列表</a></li>
            <li class="layui-this">编辑订单</li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <form class="layui-form form-container" action="{:url('admin/order/update')}" method="post">
                    {:token()}
                    <input type="hidden" name="id" value="{$goods_info.id}">

                    <div class="layui-form-item">
                        <label class="layui-form-label">订单编号</label>
                        <div class="layui-input-block" style="padding-top: 10px;color: orangered">
                            <h1>{$goods_info.order_sn}</h1>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label">收货人</label>
                        <div class="layui-input-block" style="padding-top: 10px;color: orangered">
                            <h1>{$goods_info.user_name}</h1>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label">收货地址</label>
                        <div class="layui-input-block" style="padding-top: 10px;color: orangered">
                            <h1>{$goods_info.address}</h1>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label">下单时间</label>
                        <div class="layui-input-block" style="padding-top: 10px;color: orangered">
                            <h1>{$goods_info.create_time}</h1>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label">订单状态</label>
                        <div class="layui-input-block" style="padding-top: 10px;color: orangered">
                            <h1>{$goods_info.order_status}</h1>
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label">订单金额</label>
                        <div class="layui-input-block" style="padding-top: 10px;color: orangered">
                            <h1>{$goods_info.order_amount}</h1>
                        </div>
                    </div>



                    <div class="layui-form-item">
                        <label class="layui-form-label">物流名称</label>
                        <div class="layui-input-block">
                            <input type="text" name="shipping_name" value="{$goods_info.shipping_name | default=''}" required lay-verify="required"
                                   placeholder="请输入物流名称" class="layui-input">
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <label class="layui-form-label">物流编号</label>
                        <div class="layui-input-block">
                            <input type="text" name="shipping_code" value="{$goods_info.shipping_code | default=''}" required lay-verify="required"
                                   placeholder="请输入物流编号" class="layui-input">
                        </div>
                    </div>

                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <button class="layui-btn" lay-submit lay-filter="">保存</button>
                            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
{/block}
{block name="js"}
<script src="__JS__/ueditor/ueditor.config.js"></script>
<script src="__JS__/ueditor/ueditor.all.min.js"></script>
{/block}
{block name="script"}
<script>
    synchrobulid();
    $(function() {
        layui.upload({
            url: "/api/file_upload/upload",
            success: function (data) {
                if (data.error === 0 && data.type === 'image') {
                    document.getElementById('img_url').value = data.url;
                    var _ad_index_img_box = $(".ad_index_img_box");//上传图片显示盒子
                    _ad_index_img_box.empty();
                    _ad_index_img_box.append(
                        '<img style="display: block; width: 92px;" src="' + data.url + '"/>'
                    );
                } else {
                    layer.msg(data.message);
                }

            });


    });

</script>


{/block}